<?php

namespace StudyBuddy;

/**
 * Class for generating html
 * for the block that is shown to
 * newly registered user after
 * user joins with LinkedIn signin
 *
 * The purpose of this html block
 * is to ask user to provide
 * an email address
 *
 */
class RegBlockLinkedin extends RegBlockTwitter {

    /**
     * Make html block with data about
     * external Twitter account (avatar, username)
     *
     * @return string html block
     */
    protected function makeBlockExternal() {
        d('oViewer: ' . print_r($this->oViewer, 1));

        $aVals = array(
            'LinkedIn',
            $this->oViewer->getAvatarImgSrc(),
            $this->oViewer['fn'] . ' ' . $this->oViewer['ln']
        );

        $s = \tplAvatarblock::parse($aVals, false);

        return $s;
    }

}
